package com.life.notes.config.exception;

import lombok.Getter;

import java.io.Serializable;

/**
 * 自定义异常
 * @author lishuqian
 * @date 2020/6/15
 */
@Getter
public class SystemException extends RuntimeException implements Serializable {

    private Integer code;
    private String msg;

    public SystemException(Integer code, String msg) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public SystemException(String msg) {
        super(msg);
        this.msg = msg;
    }
}
